/**
 * 排序模型
 */
import {OrderEnum} from "@/common/enum/common.enum";

export default class OrderModel {
    /**
     * 前缀
     */
    prefix?: string;
    /**
     * 字段名
     */
    field: string;
    /**
     * 排序模式
     */
    mode: OrderEnum;


    constructor(field: string, mode: OrderEnum = OrderEnum.ascending, prefix?: string) {
        this.prefix = prefix;
        this.field = field;
        this.mode = mode;
    }
}
